package c.francis.pojo;
import java.util.Date;

import org.springframework.stereotype.Component;
@Component
public class Member {
	private int id;
	private String username,password,name,email,phone,ticket;
	private Date regtime;

	public Member() {
		super();
	}

	public Member(int id, String username, String password, String name, String email, String phone, String	ticket, Date regtime) {
		super();
		this.id = id;
		this.username = username;
		this.password = password;
		this.name = name;
		this.email = email;
		this.phone = phone;
		this.ticket = ticket;
		this.regtime = regtime;
	}
//	public Member() {
//		super();
//	}
//	public int getId() {
//		return id;
//	}
//	public void setId(int id) {
//		this.id = id;
//	}
//	public String getUsername() {
//		return username;
//	}
//	public void setUsername(String username) {
//		this.username = username;
//	}
//	public String getPassword() {
//		return password;
//	}
//	public void setPassword(String password) {
//		this.password = password;
//	}
//	public String getName() {
//		return name;
//	}
//	public void setName(String name) {
//		this.name = name;
//	}
//	public String getEmail() {
//		return email;
//	}
//	public void setEmail(String email) {
//		this.email = email;
//	}
//	public String getPhone() {
//		return phone;
//	}
//	public void setPhone(String phone) {
//		this.phone = phone;
//	}
//	public String getTicket() {
//		return ticket;
//	}
//	public void setTiclket(String ticket) {
//		this.ticket = ticket;
//	}
//	public Date getRegtime() {
//		return regtime;
//	}
//	public void setRegtime(Date regtime) {
//		this.regtime = regtime;
//	}
//	@Override
//	public String toString() {
//		return "Member [id=" + id + ", username=" + username + ", password=" + password + ", name=" + name + ", email="
//				+ email + ", phone=" + phone + ", regtime=" + regtime + "]";
//	}


	@Override
	public String toString() {
		return "Member{" +
				"id=" + id +
				", username='" + username + '\'' +
				", password='" + password + '\'' +
				", name='" + name + '\'' +
				", email='" + email + '\'' +
				", phone='" + phone + '\'' +
				", ticket='" + ticket + '\'' +
				", regtime=" + regtime +
				'}';
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getTicket() {
		return ticket;
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

	public Date getRegtime() {
		return regtime;
	}

	public void setRegtime(Date regtime) {
		this.regtime = regtime;
	}

//	public Member(int id, String username, String password, String name, String email, String phone, String ticket, Date regtime) {
//		this.id = id;
//		this.username = username;
//		this.password = password;
//		this.name = name;
//		this.email = email;
//		this.phone = phone;
//		this.ticket = ticket;
//		this.regtime = regtime;
//	}
}
